package org.example;

import java.time.LocalDateTime;

public class OrderDetail {
    private int orderId;
    private String username;
    private String productName;
    private LocalDateTime orderTime;
    private double totalAmount;

    public OrderDetail() {
    }

    public OrderDetail(int orderId, String username, String productName, LocalDateTime orderTime, double totalAmount) {
        this.orderId = orderId;
        this.username = username;
        this.productName = productName;
        this.orderTime = orderTime;
        this.totalAmount = totalAmount;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public LocalDateTime getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(LocalDateTime orderTime) {
        this.orderTime = orderTime;
    }

    public double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(double totalAmount) {
        this.totalAmount = totalAmount;
    }
// 构造方法、Getter/Setter 省略
}